/**
 * Created by Admin on 2017/7/18.
 */
function httpReq(url, data, succFun, errFun) {
    //120.76.216.91 47.91.42.63
    var api = "http://47.91.42.63/API/";
    $.ajax({
        type: "POST",
        url: api + url,
        data: data,
        dataType: 'json',
        contentType: "application/json",
        success: function (result) {
            return typeof succFun == 'function' ? succFun(result) : succFun;
        },
        error: function (err) {
            return typeof errFun == 'function' ? errFun(err) : errFun;
        }
    })
}